#!/bin/sh
#PUTFILE = ./libavcodec/libavcodec.so.58
#PUTFILE = config.mak
ftp -v -n 192.168.1.58<<EOF
user root root
binary
passive
cd /apps/ffmpeg/multi_thread_neon_gcc-setall
pwd
#lcd libavcodec
#prompt
#put libavcodec.so.58
lcd .
prompt
put ffmpeg

lcd output/lib
put libavcodec.so.58.122.100
rename libavcodec.so.58.122.100 libavcodec.so.58
put libavdevice.so.58.11.103
rename libavdevice.so.58.11.103 libavdevice.so.58
put libavfilter.so.7.103.100
rename libavfilter.so.7.103.100 libavfilter.so.7
put libavformat.so.58.67.100
rename libavformat.so.58.67.100 libavformat.so.58
put libavutil.so.56.64.100
rename libavutil.so.56.64.100 libavutil.so.56
put libswresample.so.3.8.100
rename libswresample.so.3.8.100 libswresample.so.3
put libswscale.so.5.8.100
rename libswscale.so.5.8.100 libswscale.so.5

bye
#here document
EOF
echo "commit to ftp successfully"
